package org.ovirt.jenkins.model;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "vm")
public class VM {

	String name;
	String description;
	String id;
	boolean stateless;
	OS os;
	VmPool pool;
	GuestInfo guestInfo;
	VmStatus status;

	@XmlElement(name = "os")
	public OS getOs() {
		return os;
	}

	public void setOs(OS os) {
		this.os = os;
	}

	@XmlElement(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlElement(name = "stateless")
	public boolean isStateless() {
		return stateless;
	}

	public void setStateless(boolean stateless) {
		this.stateless = stateless;
	}

	@XmlElement(name = "vmpool")
	public VmPool getPool() {
		return pool;
	}

	public void setPool(VmPool pool) {
		this.pool = pool;
	}

	@XmlAttribute(name = "id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@XmlElement(name = "guest_info")
	public GuestInfo getGuestInfo() {
		return guestInfo;
	}

	public void setGuestInfo(GuestInfo guestInfo) {
		this.guestInfo = guestInfo;
	}

	@XmlElement(name = "status")
	public VmStatus getStatus() {
		return status;
	}

	public void setStatus(VmStatus status) {
		this.status = status;
	}

	@XmlElement(name="description")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
